[Previous] [Top] [Next]

Anchors

Two types of anchor are supported by HTML Author. These are HREF anchors and NAME anchors, and correspond to the HTML "<A HREF=..." and "<A NAME=..." anchors respectively. Anchors are held in the source document as fields (a feature of Word for Windows). You may see what these fields look like "in the flesh" by clicking the View Field Codes button (A button with the characters {a} on it.) and the Show/Hide button (A button with an end-of-paragraph marker on it.) (the fields contain some hidden text) in the toolbar. (These are both Word for Windows buttons.) You should refrain from editing the fields directly in this mode unless you really know what you are doing.

Anchors may be created either by selecting "Create HREF" or "Create NAME" entries from the "HTML Author" menu, or clicking on the corresponding buttons (Two buttons showing pictures of documents with arrows from and to anchors.) from the toolbar. If you wish to use some existing text as the text of the anchor, then you should select the required text in the document first (standard Microsoft Word for Windows select operation).

Creating NAME Anchors

On creating (or editing) a NAME anchor, you will then see a dialogue box with the fields TEXT and NAME.

Picture of the NAME anchor dialogue box

The text entered into the TEXT and NAME fields will be used to create the HTML anchor. For the example shown, the generated HTML code will be:

<A NAME="NAME Anchors">Creating Name Anchors</A>

Note. If the text contains embedded images of other fields, you will see the message: "<<< Can't edit (contains graphics or other fields) >>>". This does not prevent you from creating the anchor, it just means that the anchor text, containing the graphics, cannot be displayed or edited in the TEXT field.

[Previous] [Top] [Next]


This page is maintained by Dr Grahame S Cooper (G.S.Cooper@iti.salford.ac.uk) using HTML Author. Last modified on 09/04/96.